<div class="form-group">
    <label class="col-sm-2 control-label must">设备品牌</label>
    <div class="col-sm-8">
        {ifp 'sgoods.edit'}
        <select name='brands_id' class='form-control'>
            <option value='0'>所属品牌</option>
            {loop $goods_brands $row}
            <option value="{$row['id']}" {if $row['id']==$item['brands_id']}selected{/if}>{$row['name']}</option>
            {/loop}
        </select>
        {else}
        {loop $goods_brands $row}
        {if $row['id']==$item['brands_id']}
        <div class="form-control-static">{$row['name']}</div>
        {/if}
        {/loop}
        {/if}
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label must">所属种类</label>
    <div class="col-sm-8">
        {ifp 'sgoods.edit'}
        <select name='type_id' class='form-control'>
            <option value='0'>选择种类</option>
            {loop $goods_type $row}
            <option value="{$row['id']}" {if $row['id']==$item['type_id']}selected{/if}>{$row['name']}</option>
            {/loop}
        </select>
        {else}
        {loop $goods_type $row}
        {if $row['id']==$item['type_id']}
        <div class="form-control-static">{$row['name']}</div>
        {/if}
        {/loop}
        {/if}
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label must">所属门店</label>
    <div class="col-sm-8">
        {ifp 'sgoods.edit'}
        <select name='mendian_id' class='form-control'>
            <option value='0'>选择门店</option>
            {loop $mendian $row}
            <option value="{$row['id']}" {if $row['id']==$item['mendian_id']}selected{/if}>{$row['mendianname']}</option>
            {/loop}
        </select>
        {else}
        {loop $mendian $row}
        {if $row['id']==$item['mendian_id']}
        <div class="form-control-static">{$row['mendianname']}</div>
        {/if}
        {/loop}
        {/if}
    </div>
</div>